package com.zyh;
import com.zyh.entity.User;
import com.zyh.exception.BusinessException;
import com.zyh.status.UserLogin;

public class Application {

    public static User currentLoginUser = null;

    public static void main(String[] args) {
        try {
            UserLogin run = new UserLogin();
            run.run();
        } catch (Exception e) {
            handlerException(e);
        }
    }

    private static void handlerException(Exception e) {
        BusinessException businessException = (BusinessException) e;
        System.out.println("业务错误：" + businessException.getMessage());
        System.err.flush();
    }
}
